/**
 * user模块接口列表
 */

import base from './base'; // 导入接口域名列表
import axios from '@/utils/http'; // 导入http中创建的axios实例
import qs from 'qs'; // 根据需求是否导入qs模块

const user = {
       

    uploadAvatar(params: any) {
        return axios.post(`${base.user}/uploadAvatar`, params);
    },
    getUserById(params: any) {
        return axios.post(`${base.user}/getUserById`, qs.stringify(params));
    },
    editUser(params: any) {
        return axios.post(`${base.user}/editUser`, qs.stringify(params));
    },
    getUserList(params: any) {
        return axios.post(`${base.user}/getUserList`, qs.stringify(params));
    },

}

export default user;